function login(){
    var loading = WST.msg('加载中', {icon: 16,time:60000});
    var params = WST.getParams('.ipt');
    $.post(Think.U('Admin/index/login'),params,function(data,textStatus){
        layer.close(loading);
        var json = WST.toAdminJson(data);
        if(json.status=='1'){
            WST.msg("登录成功",{icon:1},function(){
                location.href=Think.U("Admin/Index/index");
            });
        }else{
            getVerify('#verifyImg');
            WST.msg(json.msg,{icon:2});
        }
    });
}

//刷新验证码
function getVerify() {
    $('#verifyImg').attr('src',Think.U('Home/Users/getVerify','rnd='+Math.random()));
}